<%--
  Created by IntelliJ IDEA.
  User: Win10
  Date: 2023/5/26
  Time: 19:55
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>观影信息可视化系统</title>
    <link href="${pageContext.request.contextPath}/bootstrap/css/bootstrap.min.css" rel="stylesheet">
    <link href="${pageContext.request.contextPath}/css/base.css" rel="stylesheet">
    <link href="${pageContext.request.contextPath}/css/style.css" rel="stylesheet">
</head>
<body class="d-flex flex-column h-100"
      style="background-image: url('${pageContext.request.contextPath}/img/lightBlue_background.png'); background-size:
              cover; background-repeat: no-repeat">
<header class="navbar navbar-expand-lg navbar-light bg-white shadow-sm fixed-top">
    <div class="container">
        <a class="navbar-brand" href="">观影信息可视化系统</a>
        <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent"
                aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
            <span class="navbar-toggler-icon"></span>
        </button>
    </div>
</header>
<main role="main" class="flex-shrink-0" style="margin-top: 145px;margin-bottom: 79px;">
    <div class="container">
        <div class="card w-100 m-auto shadow mt-5 p-4" style="max-width: 400px;">
            <form action="${pageContext.request.contextPath}/login" method="post" >
                <h1 class="h5 mb-3 font-weight-light">账号登录</h1>
                <hr>
                <h7 style="color:#ff0000;">${msg}</h7>
                <br>
                <div class="form-group">
                    <label for="username" class="sr-only">用户名</label>
                    <input type="text" id="username" name="name" class="form-control" placeholder="用户名" required
                           autofocus>
                </div>
                <div class="form-group">
                    <label for="password" class="sr-only">密码</label>
                    <input type="password" id="password" name="password" class="form-control" placeholder="密码"
                           required>
                </div>
                <button class="btn btn-primary btn-block" type="submit">登录</button>
                <div class="mt-2 text-right">
                    <a class="font-weight-light text-muted" href="${pageContext.request.contextPath}/toRegister">
                        <small>免费注册</small>
                    </a>
                </div>
            </form>
        </div>
    </div>
</main>
<footer class="bg-dark mt-auto py-3">
    <div class="container text-center">
          <span class="text-light small">学校：**** | 学院：**** | 班级：**** |
            学生：**** | 项目类型：****</span>
    </div>
</footer>
</body>
</html>
